//
//  Overload_Compare_operate.hpp
//  learnC++
//
//  Created by apple on 2018/6/5.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef Overload_Compare_operate_hpp
#define Overload_Compare_operate_hpp

#include <stdio.h>
#include <iostream>

class Car
{
private:
    std::string m_make;
    std::string m_model;
    
public:
    Car(std::string make, std::string model)
    : m_make(make), m_model(model)
    {
    }
    
    friend bool operator==(const Car &c1,const Car &c2);
    friend bool operator!=(const Car &c1,const Car &c2);
    //类似 >  <  >= <=
    
    
    
};
/*
 //    Car c1("bmw","12");
 //    Car c2("gps","20");
 //
 //    std::cout << (c1 != c2) << std::endl;
 */


#endif /* Overload_Compare_operate_hpp */
